﻿
<link href="~/Assets/css/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" />
<link href="~/Assets/css/tagmanager.css" rel="stylesheet" />
<link href="~/Assets/css/typeahead.css" rel="stylesheet" />
<script src="~/Assets/js/jquery.form.js"></script>
<script src="~/assets/js/jquery.validate.min.js"></script>
<script src="~/Assets/js/typeahead.bundle.js"></script>
<script src="~/Assets/js/flexflow-controls.js"></script>
<script src="~/Assets/js/tagmanager.js"></script>
<script src="~/Assets/js/handlebars.js"></script>

<div class="row">
    <div class="form-horizontal" role="form" id="frmNodeEditor">
        <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right" for="tag">流转条件:</label>
            <div class="col-sm-9">
                <select class="form-control col-xs-12 col-sm-9" id="flowCondition" name="flowCondition">
                    <option value="审批结果">审批结果</option>
                    <option value="分支结果">分支结果</option>
                </select>
            </div>
        </div>
        @*<div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="oper">判断符:</label>
                <div class="col-sm-9">
                    <input type="text" id="flowOper" name="flowOper" placeholder=">,<,>=,<=,==,!=" class="col-xs-12 col-sm-9">
                </div>
            </div>*@
        <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right" for="colVal">条件值:</label>
            <div class="col-sm-9">
                <input type="text" id="flowVal" name="flowVal" placeholder="条件的值" class="col-xs-12 col-sm-9">
            </div>
        </div>
    </div>
</div>
<script>
    function initForm() {
        $("#flowCondition").val(selNode.opt.flowCondition);
        //$("#flowOper").val(selNode.opt.flowOper);
        $("#flowVal").val(selNode.opt.flowVal);
        $("#tag").val(selNode.opt.tag);
    }
    function saveForm() {
        selNode.opt.flowCondition = $("#flowCondition").val();
        //selNode.opt.flowOper = $("#flowOper").val();
        selNode.opt.flowVal = $("#flowVal").val();
        selNode.opt.tag = $("#tag").val();
    }
    initForm();
</script>
